﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Steve.UI.Administration.DataAnnotations
{
    [Obsolete("I think there is a better way to do this in .NET 4.0 or Mvc Futures")]
    [AttributeUsage(AttributeTargets.Property, AllowMultiple=false, Inherited=true)]
    public sealed class ShowAttribute : Attribute
    {
        public bool ForEdit { get; private set; }
        public bool ForDisplay { get; private set; }

        public ShowAttribute(bool forDisplay, bool forEdit)
        {
            ForDisplay = forDisplay;
            ForEdit = forEdit;
        }
    }
}
